package com.alex.cms.domain;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 * 文章内容表
 * </p>
 *
 * @author alex
 * @since 2019-09-11
 */
public class CmsArticle implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 文章id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 标题
	 */
	@TableField("title")
	private String title;

	/**
	 * 摘要
	 */
	@TableField("summary")
	private String summary;

	/**
	 * 文章内容
	 */
	@TableField("content")
	private String content;

	/**
	 * 文章图片
	 */
	@TableField("picture")
	private String picture;

	/**
	 * 栏目id
	 */
	@TableField("channel_id")
	private Integer channelId;

	/**
	 * 类型id
	 */
	@TableField("categroy_id")
	private Integer categroyId;

	/**
	 * 用户id
	 */
	@TableField("user_id")
	private Integer userId;

	/**
	 * 点击量
	 */
	@TableField("hits")
	private Integer hits;

	/**
	 * 是否上热门
	 */
	@TableField("hot")
	private Boolean hot;

	/**
	 * 是否审核通过:-1为不通过，1为通过
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 是否有效:0为失效；1为有效
	 */
	@TableField("deleted")
	private Integer deleted;

	/**
	 * 文章创建时间
	 */
	@TableField("created")
	private Date created;

	/**
	 * 文章更新时间
	 */
	@TableField("updated")
	private Date updated;

	/**
	 * 评论数
	 */
	@TableField("comments")
	private Integer comments;

	/**
	 * 文章类型
	 */
	@TableField("type")
	private Integer type;
	
	/**
	 * 网页关键字
	 */
	@TableField("keywords")
	private String keywords;
	/**
	 * 文章来源
	 */
	@TableField("original")
	private String original;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Integer getChannelId() {
		return channelId;
	}

	public void setChannelId(Integer channelId) {
		this.channelId = channelId;
	}

	public Integer getCategroyId() {
		return categroyId;
	}

	public void setCategroyId(Integer categroyId) {
		this.categroyId = categroyId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getHits() {
		return hits;
	}

	public void setHits(Integer hits) {
		this.hits = hits;
	}

	public Boolean getHot() {
		return hot;
	}

	public void setHot(Boolean hot) {
		this.hot = hot;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getComments() {
		return comments;
	}

	public void setComments(Integer comments) {
		this.comments = comments;
	}
	

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getOriginal() {
		return original;
	}

	public void setOriginal(String original) {
		this.original = original;
	}

	@Override
	public String toString() {
		return "CmsArticle [id=" + id + ", title=" + title + ", summary=" + summary + ", content=" + content + ", picture=" + picture + ", channelId=" + channelId + ", categroyId=" + categroyId + ", userId=" + userId + ", hits=" + hits + ", hot=" + hot + ", status=" + status + ", deleted=" + deleted + ", created=" + created + ", updated=" + updated + ", comments=" + comments + ", type=" + type
				+ ", keywords=" + keywords + ", original=" + original + "]";
	}
}
